//Sat Jun 18 13:02:43 CDT 2011
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>

using namespace std;

class TripleStrings {
public:
	int getMinimumOperations(string, string);
	int getN(string a, string b){
		int N = a.size();
		if(a == b.substr(0, N)) return 0;
		return 2 + getN(a.substr(1), b);
	}
};

int TripleStrings::getMinimumOperations(string init, string goal) {
	int ret = 0;
	ret = getN(init, goal);
	return ret;
}


//Powered by [KawigiEdit] 2.0!
